package com.zhang.service.impl;

import com.zhang.mapper.IActivityMapper;
import com.zhang.pojo.Activity;
import com.zhang.service.IActivityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class ActivityServiceImpl implements IActivityService {
    @Autowired
    private IActivityMapper activityMapper;

    @Override
    public List<Activity> findBySchool(int schoolId) {
        return activityMapper.findBySchool(schoolId);
    }

    @Override
    public void addActivity(Activity activity) {
        activityMapper.addActivity(activity);
    }
}
